Was able to connect to the nalu scientific board using the NaluScope software (manual, download).
Here are the steps I did on Windows 10:
PROG
port.UART
port.xc7a200t_0
. This is the Nexys board.hdsocv1_evalr2
Well, I'm sure I'm connected to the board because I was able to generate these pedestal plots with in naluscope software
They obviously just look like noise centered around some pedestal. I'm currently trying to figure out how to just trigger on some noise so we don't need to input a signal for some testing
By setting the trigger source to external, I was able to start a run and activate the autotrigger, which just triggers on a set interval. I generated some events:
In short, things are working so far.
The linux install was much less straightforward due to needing to install the USB to UART drivers.
Here are the steps I followed to reproduce the behavior we had on windows:
Make Hardware connections
PROG
port.UART
port.Open Vivado to upload bitstream
xc7a200t_0
. This is the Nexys board.Install NaluScope for Linux
tar -xzvf naluscope*.tar.gz
sudo apt update sudo apt install libxcb-cursor0 libxcb-icccm4 libxcb-keysyms1 libxcb-render-util0 libxkbcommon-x11-0
sudo apt update
sudo apt install libxcb-cursor0 libxcb-icccm4 libxcb-keysyms1 libxcb-render-util0 libxkbcommon-x11-0
Download USB to UART Driver (D2XX Driver)
The NaluScope Manual suggests installing under home as root, so just mv nalu/ $HOME
.
Open the NaluScope software for use
./$HOME/nalu/nalu
(It may complain about not having D3XX
Driver, this driver is for USB3 and isn't supported on linux anyways)hdsocv1_evalr2
Was able to connect to the board within python using the naluexamples repository.
Here is how one is able to clone the examples, install the repository, then open a jupyter notebook to view it.
git clone https://github.com/NaluScientific/naluexamples.git cd naluexamples sudo apt update sudo apt install python3-pip pip3 install jupyter pip3 install naludaq pip3 install . jupyter notebook
git clone https://github.com/NaluScientific/naluexamples.git
cd naluexamples
sudo apt update
sudo apt install python3-pip
pip3 install jupyter
pip3 install naludaq
pip3 install .
jupyter notebook
From there I tried running examples/basic_uart_readout.ipynb
. I had to change the following line
model, ser_no, baud = 'aodsoc_aods', 'B308B', 2_000_000 # AODS version
model, ser_no, baud = 'aodsoc_aods', 'B308B', 2_000_000 # AODS version
to
model, ser_no, baud = 'hdsocv1_evalr2', 'AV0KR3DC', 2_000_000 # AODS version
model, ser_no, baud = 'hdsocv1_evalr2', 'AV0KR3DC', 2_000_000 # AODS version
and I was able to initialize the board
I ran into an error relating to:
ControlRegisters(BOARD).write('testmode', False)
ControlRegisters(BOARD).write('testmode', False)
claiming a key error; I.e. I don't think this board has a "testmode" control register. I'll need to do some digging to find the appropriate registers for the board.
For some reason connection over UART is very finnicky on Linux. The UART connection will randomly dissapear. To regain it I have to unplug the connectiona and plug it back in. Then do
sudo rmmod ftdi-sio sudo rmmod usbserial
sudo rmmod ftdi-sio
sudo rmmod usbserial
After this it will appear as an option when naludaq tries to find it.
I modified the readout function in naluexamples basic_uart_readout.ipynb:
def readout_buffer(windows=2, lookback=2, amount=2, testmode=True) -> bytearray: """Readout data by filling the buffer and then reading it. This means reading out more data that the serailbuffer can hold will be discarded. Args: windows (int): Number of windows to readout. lookback (int): Number of windows to lookback. amount (int): Number of events to readout. testmode (bool): If True, readout will readout ASIC test pattern. Returns: bytearray: Data readout. """ if amount > 10: print("amount too large, setting amount to 10") amount = 10 _rc = get_readout_controller(BOARD) _bc = get_board_controller(BOARD) with BOARD: print("Control Registers:", ControlRegisters(BOARD).list()) print() print("Digital Registers:", DigitalRegisters(BOARD).list()) print() #ControlRegisters(BOARD).write('testmode', False) #DigitalRegisters(BOARD).write('enabletestpatt', testmode) while BOARD.connection.in_waiting: BOARD.connection.reset_input_buffer() _rc.number_events_to_read(amount) _rc.set_readout_channels(list(range(4))) _rc.set_read_window(windows=windows, lookback=lookback, write_after_trig=16) _bc.start_readout(trig='imm', lb='forced', readoutEn=True, singleEv=True) time.sleep(1*amount) _bc.stop_readout() print(f"Bytes in buffer: {BOARD.connection.in_waiting}") _data = BOARD.connection.read_all() return _data
def readout_buffer(windows=2, lookback=2, amount=2, testmode=True) -> bytearray:
"""Readout data by filling the buffer and then reading it.
This means reading out more data that the serailbuffer can hold will be discarded.
Args:
windows (int): Number of windows to readout.
lookback (int): Number of windows to lookback.
amount (int): Number of events to readout.
testmode (bool): If True, readout will readout ASIC test pattern.
Returns:
bytearray: Data readout.
"""
if amount > 10:
print("amount too large, setting amount to 10")
amount = 10
_rc = get_readout_controller(BOARD)
_bc = get_board_controller(BOARD)
with BOARD:
print("Control Registers:", ControlRegisters(BOARD).list())
print()
print("Digital Registers:", DigitalRegisters(BOARD).list())
print()
#ControlRegisters(BOARD).write('testmode', False)
#DigitalRegisters(BOARD).write('enabletestpatt', testmode)
while BOARD.connection.in_waiting:
BOARD.connection.reset_input_buffer()
_rc.number_events_to_read(amount)
_rc.set_readout_channels(list(range(4)))
_rc.set_read_window(windows=windows, lookback=lookback, write_after_trig=16)
_bc.start_readout(trig='imm', lb='forced', readoutEn=True, singleEv=True)
time.sleep(1*amount)
_bc.stop_readout()
print(f"Bytes in buffer: {BOARD.connection.in_waiting}")
_data = BOARD.connection.read_all()
return _data
Note that I commented out
#ControlRegisters(BOARD).write('testmode', False) #DigitalRegisters(BOARD).write('enabletestpatt', testmode)
#ControlRegisters(BOARD).write('testmode', False)
#DigitalRegisters(BOARD).write('enabletestpatt', testmode)
as no such registers exist for the HDSoC board.
Then we call the function like so
_data = readout_buffer(windows=2, lookback=2, amount=2, testmode=True)
_data = readout_buffer(windows=2, lookback=2, amount=2, testmode=True)
This way it doesn't error out:
2024-11-15 15:14:00,377 naludaq.board [DEBUG ]: Entering board context ("with" block); opening connection... 2024-11-15 15:14:00,394 naludaq.FTDI [INFO ]: Success! Connected. 0 2024-11-15 15:14:00,395 naludaq.readout_controller_hdsoc [DEBUG ]: Setting numwinds to 16 2024-11-15 15:14:00,396 naludaq.FTDI [DEBUG ]: Sending: AF080010 in single mode 2024-11-15 15:14:00,417 naludaq.FTDI [DEBUG ]: Sending: B00033E8 in single mode 2024-11-15 15:14:00,438 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,459 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,481 naludaq.FTDI [DEBUG ]: Sending: B00073E8 in single mode 2024-11-15 15:14:00,502 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,523 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,544 naludaq.FTDI [DEBUG ]: Sending: B000B3E8 in single mode 2024-11-15 15:14:00,566 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,587 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode Control Registers: ['identifier', 'version', 'reg_data0', 'reg_data1', 'mode_sel', 'iomode0', 'regclr', 'pclk', 'nramp', 'iomode1', 'sysrst', 'exttrig', 'nrw', 'sel', 'stopacq', 't_user', 'write_address', 'loadwait', 'pclkwidth', 'numwinds', 'debug_data', 'debug_addr', 'idig_rst', 'wave_fifo_rst', 'clk_sync', 'clk_reset', 'clk_oeb', 'clk_i2c_sel', 'clk1v8_en', 'clk2v5_en', '3v3_i2c_en', '1v2_en', '2v5_en', 'ser_rx_neg_pol', 'ser_rx_crc_en', 'ser_rx_eof_en', 'ser_rx_div', 'ser_tx_neg_pol', 'pedram_addr', 'pedram_data', 'analog_debug_disable', 'auto_numwinds_en', 'timeout15_0', 'timeout31_16', 'eth_addr_sel', 'eth_port_sel', 'tx_mode', 'eth_ar_en', 'eth_dhcp_en', 'eth_dest_addr15_0', 'eth_dest_addr31_16', 'eth_src_addr15_0', 'eth_src_addr31_16', 'eth_dest_port', 'eth_src_port', 'pg_2v5', 'clk_intr_n', 'clk_lol_n', 'fpga_clk_locked', 'asic_clk_locked', 'ser_tx_clk_locked', 'rx_en', 'tx_en', 'idly_cnt_val', 'dhcp_addr15_0', 'ch_en15_0', 'ch_en31_16'] Digital Registers: ['scal0', 'scal1', 'scal2', 'scal3', 'scal4', 'scal5', 'scal6', 'scal7', 'scal8', 'scal9', 'scal10', 'scal11', 'scal12', 'scal13', 'scal14', 'scal15', 'scal16', 'scal17', 'scal18', 'scal19', 'scal20', 'scal21', 'scal22', 'scal23', 'scal24', 'scal25', 'scal26', 'scal27', 'scal28', 'scal29', 'scal30', 'scal31', 'scalmon_left', 'scalmon_right', 'scalhigh', 'idconfig', 'regclr_bk', 'regloadperiod_bk', 'reglatchperiod_bk', 'regwaitread', 'chanmask0', 'chanmask1', 'chanmask2', 'chanmask3', 'streamingpattern0', 'streamingpattern1', 'streamingpattern2', 'streamingpattern3', 'selectchannel', 'wraddrstart', 'wraddrstop', 'wraddrjunk', 'writeaftertrig', 'convertresetwait', 'readoutlookback', 'readoutwindows', 'readoutchannels', 'regclr_chan', 'regloadperiod_chan', 'reglatchperiod_chan', 'regmisc', 'regwaitaddr', 'writedelay', 'regspeed', 'wlcon', 'dig_to_an'] 2024-11-15 15:14:00,608 naludaq.FTDI [DEBUG ]: Sending: B000F3E8 in single mode 2024-11-15 15:14:00,630 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,651 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,672 naludaq.FTDI [DEBUG ]: Sending: B0013000 in single mode 2024-11-15 15:14:00,694 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,715 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,736 naludaq.FTDI [DEBUG ]: Sending: B0017000 in single mode 2024-11-15 15:14:00,757 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,778 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode 2024-11-15 15:14:00,799 naludaq.FTDI [DEBUG ]: Sending: B001B000 in single mode 2024-11-15 15:14:00,820 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode 2024-11-15 15:14:00,842 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode 2024-11-15 15:14:00,863 naludaq.FTDI [DEBUG ]: Sending: B001F000 in single mode 2024-11-15 15:14:00,884 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode 2024-11-15 15:14:00,905 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode 2024-11-15 15:14:00,926 naludaq.FTDI [DEBUG ]: Sending: B0023000 in single mode 2024-11-15 15:14:00,948 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode 2024-11-15 15:14:00,969 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode 2024-11-15 15:14:00,990 naludaq.FTDI [DEBUG ]: Sending: B0027000 in single mode 2024-11-15 15:14:01,011 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode 2024-11-15 15:14:01,032 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode 2024-11-15 15:14:01,053 naludaq.FTDI [DEBUG ]: Sending: B002B000 in single mode 2024-11-15 15:14:01,075 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,096 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,118 naludaq.FTDI [DEBUG ]: Sending: B002F000 in single mode 2024-11-15 15:14:01,139 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,160 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,181 naludaq.FTDI [DEBUG ]: Sending: B0033000 in single mode 2024-11-15 15:14:01,202 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,223 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,244 naludaq.FTDI [DEBUG ]: Sending: B0037000 in single mode 2024-11-15 15:14:01,265 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,286 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,307 naludaq.FTDI [DEBUG ]: Sending: B003B000 in single mode 2024-11-15 15:14:01,329 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,350 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,371 naludaq.FTDI [DEBUG ]: Sending: B003F000 in single mode 2024-11-15 15:14:01,392 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,413 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode 2024-11-15 15:14:01,435 naludaq.FTDI [DEBUG ]: Sending: B0083000 in single mode 2024-11-15 15:14:01,456 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,477 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,498 naludaq.FTDI [DEBUG ]: Sending: B0087000 in single mode 2024-11-15 15:14:01,519 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,540 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,561 naludaq.FTDI [DEBUG ]: Sending: B008B000 in single mode 2024-11-15 15:14:01,582 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,603 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,624 naludaq.FTDI [DEBUG ]: Sending: B008F000 in single mode 2024-11-15 15:14:01,645 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,666 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,687 naludaq.FTDI [DEBUG ]: Sending: B0093000 in single mode 2024-11-15 15:14:01,708 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,729 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,750 naludaq.FTDI [DEBUG ]: Sending: B0097000 in single mode 2024-11-15 15:14:01,772 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,793 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode 2024-11-15 15:14:01,814 naludaq.FTDI [DEBUG ]: Sending: B009B000 in single mode 2024-11-15 15:14:01,835 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode 2024-11-15 15:14:01,856 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode 2024-11-15 15:14:01,877 naludaq.FTDI [DEBUG ]: Sending: B009F000 in single mode 2024-11-15 15:14:01,898 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode 2024-11-15 15:14:01,919 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode 2024-11-15 15:14:01,941 naludaq.FTDI [DEBUG ]: Sending: B00A3000 in single mode 2024-11-15 15:14:01,962 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode 2024-11-15 15:14:01,983 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode 2024-11-15 15:14:02,005 naludaq.FTDI [DEBUG ]: Sending: B00A7000 in single mode 2024-11-15 15:14:02,026 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode 2024-11-15 15:14:02,047 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode 2024-11-15 15:14:02,069 naludaq.FTDI [DEBUG ]: Sending: B00AB000 in single mode 2024-11-15 15:14:02,090 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,111 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,132 naludaq.FTDI [DEBUG ]: Sending: B00AF000 in single mode 2024-11-15 15:14:02,154 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,175 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,196 naludaq.FTDI [DEBUG ]: Sending: B00B3000 in single mode 2024-11-15 15:14:02,218 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,239 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,260 naludaq.FTDI [DEBUG ]: Sending: B00B7000 in single mode 2024-11-15 15:14:02,281 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,302 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,324 naludaq.FTDI [DEBUG ]: Sending: B00BB000 in single mode 2024-11-15 15:14:02,345 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,366 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,387 naludaq.FTDI [DEBUG ]: Sending: B00BF000 in single mode 2024-11-15 15:14:02,408 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,429 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode 2024-11-15 15:14:02,450 naludaq.readout_controller_default [DEBUG ]: Set readwindow to: w2, l2, t:16 2024-11-15 15:14:02,450 naludaq.FTDI [DEBUG ]: Sending: B01C6002 in single mode 2024-11-15 15:14:02,471 naludaq.FTDI [DEBUG ]: Sending: B01C5002 in single mode 2024-11-15 15:14:02,491 naludaq.FTDI [DEBUG ]: Sending: B01C3010 in single mode 2024-11-15 15:14:02,512 naludaq.board_controller_default [DEBUG ]: READOUT command: Bc300000 2024-11-15 15:14:02,512 naludaq.FTDI [DEBUG ]: Sending: Bc300000 in single mode 2024-11-15 15:14:04,535 naludaq.FTDI [DEBUG ]: Sending: B0B00000 in single mode 2024-11-15 15:14:04,556 naludaq.FTDI [DEBUG ]: Sending: AF042001 in single mode 2024-11-15 15:14:04,577 naludaq.FTDI [DEBUG ]: Sending: AF040001 in single mode 2024-11-15 15:14:04,598 naludaq.FTDI [DEBUG ]: Sending: AF160400 in single mode 2024-11-15 15:14:04,619 naludaq.FTDI [DEBUG ]: Sending: AF160000 in single mode 2024-11-15 15:14:04,641 naludaq.FTDI [DEBUG ]: Sending: AF160200 in single mode 2024-11-15 15:14:04,661 naludaq.FTDI [DEBUG ]: Sending: AF160000 in single mode 2024-11-15 15:14:04,684 naludaq.board [DEBUG ]: Exiting board context ("with" block); closing connection... Bytes in buffer: 0
2024-11-15 15:14:00,377 naludaq.board [DEBUG ]: Entering board context ("with" block); opening connection...
2024-11-15 15:14:00,394 naludaq.FTDI [INFO ]: Success! Connected. 0
2024-11-15 15:14:00,395 naludaq.readout_controller_hdsoc [DEBUG ]: Setting numwinds to 16
2024-11-15 15:14:00,396 naludaq.FTDI [DEBUG ]: Sending: AF080010 in single mode
2024-11-15 15:14:00,417 naludaq.FTDI [DEBUG ]: Sending: B00033E8 in single mode
2024-11-15 15:14:00,438 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,459 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,481 naludaq.FTDI [DEBUG ]: Sending: B00073E8 in single mode
2024-11-15 15:14:00,502 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,523 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,544 naludaq.FTDI [DEBUG ]: Sending: B000B3E8 in single mode
2024-11-15 15:14:00,566 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,587 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
Control Registers: ['identifier', 'version', 'reg_data0', 'reg_data1', 'mode_sel', 'iomode0', 'regclr', 'pclk', 'nramp', 'iomode1', 'sysrst', 'exttrig', 'nrw', 'sel', 'stopacq', 't_user', 'write_address', 'loadwait', 'pclkwidth', 'numwinds', 'debug_data', 'debug_addr', 'idig_rst', 'wave_fifo_rst', 'clk_sync', 'clk_reset', 'clk_oeb', 'clk_i2c_sel', 'clk1v8_en', 'clk2v5_en', '3v3_i2c_en', '1v2_en', '2v5_en', 'ser_rx_neg_pol', 'ser_rx_crc_en', 'ser_rx_eof_en', 'ser_rx_div', 'ser_tx_neg_pol', 'pedram_addr', 'pedram_data', 'analog_debug_disable', 'auto_numwinds_en', 'timeout15_0', 'timeout31_16', 'eth_addr_sel', 'eth_port_sel', 'tx_mode', 'eth_ar_en', 'eth_dhcp_en', 'eth_dest_addr15_0', 'eth_dest_addr31_16', 'eth_src_addr15_0', 'eth_src_addr31_16', 'eth_dest_port', 'eth_src_port', 'pg_2v5', 'clk_intr_n', 'clk_lol_n', 'fpga_clk_locked', 'asic_clk_locked', 'ser_tx_clk_locked', 'rx_en', 'tx_en', 'idly_cnt_val', 'dhcp_addr15_0', 'ch_en15_0', 'ch_en31_16']
Digital Registers: ['scal0', 'scal1', 'scal2', 'scal3', 'scal4', 'scal5', 'scal6', 'scal7', 'scal8', 'scal9', 'scal10', 'scal11', 'scal12', 'scal13', 'scal14', 'scal15', 'scal16', 'scal17', 'scal18', 'scal19', 'scal20', 'scal21', 'scal22', 'scal23', 'scal24', 'scal25', 'scal26', 'scal27', 'scal28', 'scal29', 'scal30', 'scal31', 'scalmon_left', 'scalmon_right', 'scalhigh', 'idconfig', 'regclr_bk', 'regloadperiod_bk', 'reglatchperiod_bk', 'regwaitread', 'chanmask0', 'chanmask1', 'chanmask2', 'chanmask3', 'streamingpattern0', 'streamingpattern1', 'streamingpattern2', 'streamingpattern3', 'selectchannel', 'wraddrstart', 'wraddrstop', 'wraddrjunk', 'writeaftertrig', 'convertresetwait', 'readoutlookback', 'readoutwindows', 'readoutchannels', 'regclr_chan', 'regloadperiod_chan', 'reglatchperiod_chan', 'regmisc', 'regwaitaddr', 'writedelay', 'regspeed', 'wlcon', 'dig_to_an']
2024-11-15 15:14:00,608 naludaq.FTDI [DEBUG ]: Sending: B000F3E8 in single mode
2024-11-15 15:14:00,630 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,651 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,672 naludaq.FTDI [DEBUG ]: Sending: B0013000 in single mode
2024-11-15 15:14:00,694 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,715 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,736 naludaq.FTDI [DEBUG ]: Sending: B0017000 in single mode
2024-11-15 15:14:00,757 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,778 naludaq.FTDI [DEBUG ]: Sending: B00430FF in single mode
2024-11-15 15:14:00,799 naludaq.FTDI [DEBUG ]: Sending: B001B000 in single mode
2024-11-15 15:14:00,820 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode
2024-11-15 15:14:00,842 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode
2024-11-15 15:14:00,863 naludaq.FTDI [DEBUG ]: Sending: B001F000 in single mode
2024-11-15 15:14:00,884 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode
2024-11-15 15:14:00,905 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode
2024-11-15 15:14:00,926 naludaq.FTDI [DEBUG ]: Sending: B0023000 in single mode
2024-11-15 15:14:00,948 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode
2024-11-15 15:14:00,969 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode
2024-11-15 15:14:00,990 naludaq.FTDI [DEBUG ]: Sending: B0027000 in single mode
2024-11-15 15:14:01,011 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode
2024-11-15 15:14:01,032 naludaq.FTDI [DEBUG ]: Sending: B0042200 in single mode
2024-11-15 15:14:01,053 naludaq.FTDI [DEBUG ]: Sending: B002B000 in single mode
2024-11-15 15:14:01,075 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,096 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,118 naludaq.FTDI [DEBUG ]: Sending: B002F000 in single mode
2024-11-15 15:14:01,139 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,160 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,181 naludaq.FTDI [DEBUG ]: Sending: B0033000 in single mode
2024-11-15 15:14:01,202 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,223 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,244 naludaq.FTDI [DEBUG ]: Sending: B0037000 in single mode
2024-11-15 15:14:01,265 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,286 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,307 naludaq.FTDI [DEBUG ]: Sending: B003B000 in single mode
2024-11-15 15:14:01,329 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,350 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,371 naludaq.FTDI [DEBUG ]: Sending: B003F000 in single mode
2024-11-15 15:14:01,392 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,413 naludaq.FTDI [DEBUG ]: Sending: B0044000 in single mode
2024-11-15 15:14:01,435 naludaq.FTDI [DEBUG ]: Sending: B0083000 in single mode
2024-11-15 15:14:01,456 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,477 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,498 naludaq.FTDI [DEBUG ]: Sending: B0087000 in single mode
2024-11-15 15:14:01,519 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,540 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,561 naludaq.FTDI [DEBUG ]: Sending: B008B000 in single mode
2024-11-15 15:14:01,582 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,603 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,624 naludaq.FTDI [DEBUG ]: Sending: B008F000 in single mode
2024-11-15 15:14:01,645 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,666 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,687 naludaq.FTDI [DEBUG ]: Sending: B0093000 in single mode
2024-11-15 15:14:01,708 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,729 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,750 naludaq.FTDI [DEBUG ]: Sending: B0097000 in single mode
2024-11-15 15:14:01,772 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,793 naludaq.FTDI [DEBUG ]: Sending: B00C3000 in single mode
2024-11-15 15:14:01,814 naludaq.FTDI [DEBUG ]: Sending: B009B000 in single mode
2024-11-15 15:14:01,835 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode
2024-11-15 15:14:01,856 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode
2024-11-15 15:14:01,877 naludaq.FTDI [DEBUG ]: Sending: B009F000 in single mode
2024-11-15 15:14:01,898 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode
2024-11-15 15:14:01,919 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode
2024-11-15 15:14:01,941 naludaq.FTDI [DEBUG ]: Sending: B00A3000 in single mode
2024-11-15 15:14:01,962 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode
2024-11-15 15:14:01,983 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode
2024-11-15 15:14:02,005 naludaq.FTDI [DEBUG ]: Sending: B00A7000 in single mode
2024-11-15 15:14:02,026 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode
2024-11-15 15:14:02,047 naludaq.FTDI [DEBUG ]: Sending: B00C2200 in single mode
2024-11-15 15:14:02,069 naludaq.FTDI [DEBUG ]: Sending: B00AB000 in single mode
2024-11-15 15:14:02,090 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,111 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,132 naludaq.FTDI [DEBUG ]: Sending: B00AF000 in single mode
2024-11-15 15:14:02,154 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,175 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,196 naludaq.FTDI [DEBUG ]: Sending: B00B3000 in single mode
2024-11-15 15:14:02,218 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,239 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,260 naludaq.FTDI [DEBUG ]: Sending: B00B7000 in single mode
2024-11-15 15:14:02,281 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,302 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,324 naludaq.FTDI [DEBUG ]: Sending: B00BB000 in single mode
2024-11-15 15:14:02,345 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,366 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,387 naludaq.FTDI [DEBUG ]: Sending: B00BF000 in single mode
2024-11-15 15:14:02,408 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,429 naludaq.FTDI [DEBUG ]: Sending: B00C4000 in single mode
2024-11-15 15:14:02,450 naludaq.readout_controller_default [DEBUG ]: Set readwindow to: w2, l2, t:16
2024-11-15 15:14:02,450 naludaq.FTDI [DEBUG ]: Sending: B01C6002 in single mode
2024-11-15 15:14:02,471 naludaq.FTDI [DEBUG ]: Sending: B01C5002 in single mode
2024-11-15 15:14:02,491 naludaq.FTDI [DEBUG ]: Sending: B01C3010 in single mode
2024-11-15 15:14:02,512 naludaq.board_controller_default [DEBUG ]: READOUT command: Bc300000
2024-11-15 15:14:02,512 naludaq.FTDI [DEBUG ]: Sending: Bc300000 in single mode
2024-11-15 15:14:04,535 naludaq.FTDI [DEBUG ]: Sending: B0B00000 in single mode
2024-11-15 15:14:04,556 naludaq.FTDI [DEBUG ]: Sending: AF042001 in single mode
2024-11-15 15:14:04,577 naludaq.FTDI [DEBUG ]: Sending: AF040001 in single mode
2024-11-15 15:14:04,598 naludaq.FTDI [DEBUG ]: Sending: AF160400 in single mode
2024-11-15 15:14:04,619 naludaq.FTDI [DEBUG ]: Sending: AF160000 in single mode
2024-11-15 15:14:04,641 naludaq.FTDI [DEBUG ]: Sending: AF160200 in single mode
2024-11-15 15:14:04,661 naludaq.FTDI [DEBUG ]: Sending: AF160000 in single mode
2024-11-15 15:14:04,684 naludaq.board [DEBUG ]: Exiting board context ("with" block); closing connection...
Bytes in buffer: 0
But I end up readout 0 bytes. The line
_bc.start_readout(trig='imm', lb='forced', readoutEn=True, singleEv=True)
_bc.start_readout(trig='imm', lb='forced', readoutEn=True, singleEv=True)
is supposed to force a trigger, but it doesn't seem to be working(?). I think sending some message to nalu would be useful.